package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaProject;
import com.ruoyi.oa.domain.OaPurchaseContact;
import com.ruoyi.oa.domain.vo.OaPurchaseContactVo;
import com.ruoyi.oa.domain.bo.OaPurchaseContactBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 合同申请Service接口
 *
 * @author ruoyi
 * @date 2023-04-25
 */
public interface IOaPurchaseContactService {

    /**
     * 查询合同申请
     */
    OaPurchaseContactVo queryById(String id);

    /**
     * 通过项目名称查询合同申请
     */
    OaPurchaseContactVo queryByProjectName(String projectName);

    /**
     * 查询合同申请列表
     */
    TableDataInfo<OaPurchaseContactVo> queryPageList(OaPurchaseContactBo bo, PageQuery pageQuery);

    /**
     * 查询合同申请列表
     */
    List<OaPurchaseContactVo> queryList(OaPurchaseContactBo bo);

    /**
     * 新增合同申请
     */
    OaPurchaseContactBo insertByBo(OaPurchaseContactBo bo);

    /**
     * 修改合同申请
     */
    OaPurchaseContact updateByBo(OaPurchaseContactBo bo);

    /**
     * 校验并批量删除合同申请信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);


    /**
     * 获取没有合同申请的项目信息
     * @return
     */
    public List<OaProject> getProjectList();
}
